package com.nulp.psycho.db.service;

import com.nulp.psycho.db.dao.impl.InterpretationDao;

public class InterpretationService {

	public <T> void create(T element) {
		new InterpretationDao().create(element);
	}


	public <T> T read(Integer id) {
		return new InterpretationDao().read(id);
	}


	public void delete(Integer id) {
		new InterpretationDao().delete(id);
	}


	public <T> void update(T element) {
		new InterpretationDao().update(element);
	}
	
	public <T> T getInterpretationByValue(String paramName, Integer paramValue) {
		return new InterpretationDao().getInterpretationByValue(paramName, paramValue);
	}
}
